<?php
namespace app\validate;
use think\Validate;

class Role extends Validate{
    protected $rule=[
      'id'=>'require'
    ];
    protected $message = [
      'id.require'=>'角色ID必填'
    ];
    protected $scene = [
      'search'=>['id']
    ];
}